package com.zd.commodity.productMng.entity;

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;

import com.zd.commodity.brandMng.entity.BrandShow;
import com.zd.commodity.categoryMng.entity.Category;
import com.zd.commodity.product_pic.entity.ProductPic;

/**
 * Product entity. @author MyEclipse Persistence Tools
 */

public class Product implements java.io.Serializable {

	// Fields

	private Long id;
	private String sku;
	private String name;
	private Integer status;
	private String model;
	private String infoSource;
	private BrandShow brandShow;
	private Category category;
	private ProductSeries productSeries;
	private ProductIntroduction productIntroduction;
	private Timestamp creationTime;
	private Timestamp updateTime;
	private String creator;
	private String updater;
	private Integer isNamed;
	private Set<ProductPic> productPicList;//图片

	// Property accessors

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	
	public String getSku() {
		return sku;
	}

	public void setSku(String sku) {
		this.sku = sku;
	}

	public String getModel() {
		return model;
	}

	public void setModel(String model) {
		this.model = model;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getInfoSource() {
		return this.infoSource;
	}

	public void setInfoSource(String infoSource) {
		this.infoSource = infoSource;
	}


	public BrandShow getBrandShow() {
		return brandShow;
	}

	public void setBrandShow(BrandShow brandShow) {
		this.brandShow = brandShow;
	}

	public Category getCategory() {
		return category;
	}

	public void setCategory(Category category) {
		this.category = category;
	}

	public ProductSeries getProductSeries() {
		return productSeries;
	}

	public void setProductSeries(ProductSeries productSeries) {
		this.productSeries = productSeries;
	}

	public ProductIntroduction getProductIntroduction() {
		return productIntroduction;
	}

	public void setProductIntroduction(ProductIntroduction productIntroduction) {
		this.productIntroduction = productIntroduction;
	}

	public Timestamp getCreationTime() {
		return this.creationTime;
	}

	public void setCreationTime(Timestamp creationTime) {
		this.creationTime = creationTime;
	}

	public Timestamp getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Timestamp updateTime) {
		this.updateTime = updateTime;
	}

	public String getCreator() {
		return this.creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	public String getUpdater() {
		return this.updater;
	}

	public void setUpdater(String updater) {
		this.updater = updater;
	}

	public Integer getIsNamed() {
		return isNamed;
	}

	public void setIsNamed(Integer isNamed) {
		this.isNamed = isNamed;
	}

	public Set<ProductPic> getProductPicList() {
		if(productPicList==null){
			productPicList=new HashSet<ProductPic>();
		}
		return productPicList;
	}

	public void setProductPicList(Set<ProductPic> productPicList) {
		this.productPicList = productPicList;
	}

}